<script type ="text/javascript" src="<?php echo js_url('jquery') ?>"></script>
<script type ="text/javascript" src="<?php echo js_url('javascriptFonctions') ?>"></script>

<?php
	if($modif)
	{
		echo'<h2>Modifier un thème</h2>';
		echo'<form id="form_theme" action="'.base_url().'index.php/Administration/modificationTheme/'.$theme->getId().'" method="post">';
	}
	else
	{
		echo'<h2>Ajouter un thème</h2>';
		echo'<form id="form_theme" action="'.base_url().'index.php/Administration/creationTheme" method="post">';
	}
	
	echo '<br>'.$message;
?>	<p>
		<label for="Nom">Nom du thème : </label>
		<input <?php if($modif) echo 'value="'.show($theme->getLibelle()).'"'?> id="nom" type="text" name="Libelle" onFocus="blancNom()"/>
		<span id="erreur"></span>
	</p>
	<div class="boutons"><p>
		<ul>
		<?php if($modif)
			echo '<li><input class="Ligne2" type="submit" value="Modifier" name="Modifier" onClick="return verifFormulaireTheme()"/></li>';
		else 
			echo '<li><input class="Ligne2" type="submit" value="Ajouter" name="Ajouter" onClick="return verifFormulaireTheme()"/></li>';
		echo '<li><a href="javascript:history.go(-1)"><button type="button">Retour</button></a></li>'?>	
		</ul>
	</p></div>
</form>